import request from '@/utils/request'

// 查询文档附件列表
export function listDocattach(query) {
  return request({
    url: '/kno/docattach/list',
    method: 'get',
    params: query
  })
}

// 查询文档附件详细
export function getDocattach(docattachid) {
  return request({
    url: '/kno/docattach/' + docattachid,
    method: 'get'
  })
}

// 新增文档附件
export function addDocattach(data) {
  return request({
    url: '/kno/docattach',
    method: 'post',
    data: data
  })
}

// 修改文档附件
export function updateDocattach(data) {
  return request({
    url: '/kno/docattach',
    method: 'put',
    data: data
  })
}

// 删除文档附件
export function delDocattach(docattachid) {
  return request({
    url: '/kno/docattach/' + docattachid,
    method: 'delete'
  })
}
